package com.zxw.factory;

import com.lmax.disruptor.EventFactory;
import com.zxw.entity.ObjectEvent;
import lombok.Data;

/**
 * @author by zhuxiansheng
 * @description 事件工厂
 * @date
 */
@Data
public class ObjectEventFactory<T> implements EventFactory<ObjectEvent<T>> {

    @Override
    public ObjectEvent<T> newInstance() {
        return new ObjectEvent<T>();
    }
}
